#pragma once
#include "IEventHandler.h"
#include "SOCK_Stream.h"
#include "INET_Addr.h"
#include "SOCK_Acceptor.h"
#include "SOCK_Connector.h"


class PatientValueEvent :public IEventHandler<SOCKET>
{
public:
	PatientValueEvent(INET_Addr _addr, Mode m, int _type, char* _value);
	~PatientValueEvent(void);
	void handle_event(Handler<SOCKET> handle, Event_Type et);
	void handle_input(Handler<SOCKET> handle);
	void handle_output(Handler<SOCKET> handle);
//	void handle_timeout(const TimeValue&);
	void handle_close(Handler<SOCKET> handle, Event_Type et);
//	Handler<SOCKET> get_handle() const;

private:
	SOCKET sock;
	SOCK_Stream stream;
	INET_Addr addr;
	SOCK_Acceptor acceptor;
	SOCK_Connector connector;
	int type;
	char* value;

};

